package com.meng;

import java.io.IOException;
import java.io.InputStream;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.Timer;

public class wfdwqfq {
public static void main(String[] args) {
	Timestamp ds = new Timestamp(new Date().getTime());
	Timestamp ds1 = new Timestamp(System.currentTimeMillis());
	 System.out.println(ds);
	 System.out.println(ds1);
	 Timestamp time = Timestamp.valueOf("2010-10-07 14:30:30.123");
	 System.out.println(time);
	 System.out.println(time.before(ds1));
	 wfdwqfq wf = new wfdwqfq();
	 try {
		wf.e();
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	 Date d = new Date(708019200000l);
	 SimpleDateFormat dateformat2=new SimpleDateFormat("yyyy-MM-dd");
	 dateformat2.setTimeZone(TimeZone.getTimeZone("GMT+8"));
	 System.out.println(dateformat2.format(d));
	 
	 
	 String s = "128";
	 byte b = Byte.parseByte(s);
	 System.out.println(b);
	 
	 

}
public void e() throws IOException{
	InputStream in = this.getClass().getClassLoader().getResourceAsStream("/hibernate.cfg.xml");
	System.out.println(in);
}
}
